#include <stdio.h>
int main()
{
	char *str[] = {"abcde", "12345"};
	printf("Method 1 output: %c\n",str[0][2]);
	printf("Method 2 output: %c\n",*(str[0]+2));
	char *p; //指针
	p = str[0];
	printf("Method 3 output: %c\n",*(p+2));
	printf("Method 4 output: %c\n",p[2]);
	char **p2;//二重指针
	p2 = str;
	printf("Method 5 output: %c\n",(*p2)[2]);
	printf("Method 6 output: %c\n",*((*p2)+2));
	
	printf("Address of str   :%p\n",str);
	printf("Address of *str  :%p\n",*str);
	printf("Address of str[0]:%p\n",str[0]);	
}
